﻿
@{
    ViewBag.Title = "AddUser";
    Layout = "~/Views/Shared/_ryIndex.cshtml";
}

@section styles
{
    @Styles.Render("~/bundles/BootstrapTableCss")

    <link href="~/Content/static/ajax/libs/iCheck/custom.css" rel="stylesheet" />
    <link href="~/Content/static/ajax/libs/select/select2.css" rel="stylesheet" />
    <link href="~/Content/static/ruoyi/css/RuoYi.css" rel="stylesheet" />
}


@section scripts
{
    @Scripts.Render("~/bundles/jqueryValidate")
    @*<script src="~/Content/ajax/libs/iCheck/icheck.min.js"></script>*@
    <script src="~/Content/static/ajax/libs/select/select2.js"></script>
    <script src="~/Content/static/ruoyi/system/user/add.js"></script>

}


<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-user-add">
            <input name="deptId" type="hidden" id="treeId" />
            <div class="form-group">
                <label class="col-sm-3 control-label ">登录名称：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="text" id="loginName" name="loginName" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">部门名称：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="text" name="deptName" onclick="selectDeptTree()" readonly="true" id="treeName">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">用户名称：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="text" name="userName" id="userName">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">密码：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="password" name="password" id="password" value="123456">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">邮箱：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="text" name="email" id="email">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">手机：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="text" name="phonenumber" id="phonenumber">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">性别：</label>
                <div class="col-sm-8">
                    <select id="sex" class="form-control m-b">
                        <option value="0">男</option>
                        <option value="1">女</option>
                        <option value="2">未知</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <div class="onoffswitch">
                        <input type="checkbox" class="onoffswitch-checkbox" id="status" name="status" checked="checked">
                        <label class="onoffswitch-label" for="status">
                            <span class="onoffswitch-inner"></span>
                            <span class="onoffswitch-switch"></span>
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">角色：</label>
                <div class="col-sm-8">
                    <select id="role" name="role" class="form-control select2-hidden-accessible" multiple="">
                        @foreach (var item in ViewBag.roleIdAndList)
                        {
                            <option value="@item.Key">@item.Value</option>
                        }
                    </select>

                </div>
            </div>
            @*<div class="form-group">
                    <label class="col-sm-3 control-label">角色：</label>
                    <div class="col-sm-8">
                        <label class="checkbox-inline i-checks">
                            <input name="role" type="checkbox" value="1">管理员</input>
                        </label><label class="checkbox-inline i-checks">
                            <input name="role" type="checkbox" value="2">普通角色</input>
                        </label>
                    </div>
                </div>*@

            <div class="form-group">
                <div class="form-control-static col-sm-offset-9">
                    <button type="submit" class="btn btn-primary">提交</button>
                    <button onclick="javascript:layer_close()" class="btn btn-danger" type="button">关闭</button>
                </div>
            </div>
        </form>
    </div>
</body>

